﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

//随机填充一组数组
//产生100个1-99之间的随机整数，填充数组；
//数组类型是整数，大小为100
namespace CSharpEx02
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] a = new int[100];
            Random r = new Random();
            for (int i = 0; i < 100; i++)
            {
                a[i] = r.Next(1, 100);
            }

            foreach (int k in a)
            {
                Console.Write("{0} ", k);
            }
        }
    }
}
